import Vue from 'vue'
import Vuex from 'vuex'
import './assets/css/common.css'
import './assets/js/common.js'
import App from './App.vue'


Vue.config.productionTip = false
Vue.use(Vuex)
const state = {
  overWidget: '',
  activeWidget:'',
  moveWidget:'',
  addWidgetType:'',
  flowNodeAddMenu:{}
}
const mutations = {
  setOverWidget(state, id) {
    state.overWidget = id
  },
  setActiveWidget(state, id) {
    state.activeWidget = id
  },
  setMoveWidget(state, id) {
    state.moveWidget = id
  },
  setAddWidgetType(state,id){
    state.addWidgetType = id;
  },
  setFlowNodeAddMenu(state,id){
    state.flowNodeAddMenu = id;
  }
}
var store = new Vuex.Store({
  state,
  mutations
})


new Vue({
  store,
  render: h => h(App),
}).$mount('#app')
